home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / eiffel / smalleif.97 / se.t / SmallEiffel / lib_test / test_address_of1.e < prev    next >
Encoding:
Text File  |  1996-05-02  |  521 b   |  29 lines

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class TEST_ADDRESS_OF1
  5. --
  6. -- From a bug report of Masato MOGAKI
  7. --
  8. creation
  9.    make
  10.  
  11. feature
  12.  
  13.    a_string: STRING;
  14.  
  15.    make is
  16.       do
  17.          a_string  := "TEST";
  18.          if not c_routine($a_string) then
  19.         std_error.put_string("ERROR TEST_ADDRESS_OF1%N");
  20.      end;
  21.       end
  22.  
  23.    c_routine(p: POINTER): BOOLEAN is 
  24.       do
  25.      c_inline_c("R=(((void *)&(C->_a_string))==a1);");
  26.       end
  27.  
  28. end
  29.